From: Ray Strode Date: Thu, 26 Jul 2012 21:44:56 +0000 (-0400) Subject: recorder: keep test-recorder alive until done recording X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5532 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92033ce0f56538ecf68b37cfa6d555989e951896;p=gnome-shell.git recorder: keep test-recorder alive until done recording Recording continues for some time after the recorder object is closed, since closing isn't a synchronous operation. This commit defers quiting the test-recorder application until the recording is finished. https://bugzilla.gnome.org/show_bug.cgi?id=680647 --- diff --git a/src/test-recorder.c b/src/test-recorder.c index 69f6f601f..599266a70 100644 --- a/src/test-recorder.c +++ b/src/test-recorder.c @@ -16,10 +16,20 @@ stop_recording_timeout (ClutterActor *stage) if (recorder) { shell_recorder_close (recorder); + + /* quit when the recorder finishes closing + */ + g_object_weak_ref (G_OBJECT (recorder), + (GWeakNotify) + clutter_actor_destroy, + stage); + g_object_unref (recorder); } - - clutter_actor_destroy (stage); + else + { + clutter_actor_destroy (stage); + } return FALSE; }